package com.megan.design.pattern.creational.abstractfactory;

/**
 * @author: megan
 * @eMail: meganmail@vip.qq.com
 * @date: 2019/1/10 15:45
 * @version: v1.0
 * @description:
 */
public class Test {
    public static void main(String[] args) {
        CourseFactory courseFactory = new JavaCourseFactory();
        Video video = courseFactory.getVideo();
        Article article = courseFactory.getArticle();
        video.produce();
        article.produce();


        CourseFactory courseFactory1 = new PythonCourseFactory();
        Video video1 = courseFactory1.getVideo();
        Article article1 = courseFactory1.getArticle();

        video1.produce();
        article1.produce();
    }
}
